package com.wisdytech.linkdcs.account.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@TableName("TT_EQ_ACCOUNT")
public class TtEqAccount extends Model<TtEqAccount> {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@TableId("PK_ID")
    private String pkId;

    @TableField("EQUIP_CODE")
    private String equipCode;

    @TableField("FACTORY_ID")
    private String factoryId;

    @TableField("LINE_ID")
    private String lineId;

    @TableField("SHOP_ID")
    private String shopId;

    @TableField("LOCATION_ID")
    private String locationId;

    @TableField("EQUIP_TYPE")
    private String equipType;

    @TableField("EFFECTIVE_WORK_TIME")
    private BigDecimal effectiveWorkTime;

    @TableField("INSTALL_LOCATION")
    private String installLocation;

    @TableField("MANUFACTURE_DATE")
    private Date manufactureDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField("PRODUCTION_DATE")
    private Date productionDate;

    @TableField("DEPRECIATION_TYPE")
    private String depreciationType;

    @TableField("ORIGINAL_ASSETS")
    private BigDecimal originalAssets;

    @TableField("EXPECTED_RESIDUAL_RATE")
    private BigDecimal expectedResidualRate;

    @TableField("NET_ASSETS")
    private BigDecimal netAssets;

    @TableField("EXPECTED_YEAR")
    private Integer expectedYear;

    @TableField("DEPARTMENT")
    private String department;

    @TableField("RESPONSIBLE_PERSON")
    private String responsiblePerson;

    @TableField("EQUIP_STATUS")
    private String equipStatus;

    @TableField("DEL_FLAG")
    private String delFlag;

    @TableField("CREATE_USER")
    private String createUser;

    @TableField("CREATE_DATE")
    private Date createDate;

    @TableField("UPDATE_USER")
    private String updateUser;

    @TableField("UPDATE_DATE")
    private Date updateDate;

    @TableField("REMARK")
    private String remark;
    
    /**辅助类设备id*/
    @TableField(exist=false)
    private String aidEquipCodes;

    
    
    public String getAidEquipCodes() {
		return aidEquipCodes;
	}

	public void setAidEquipCodes(String aidEquipCodes) {
		this.aidEquipCodes = aidEquipCodes;
	}

	public String getPkId() {
        return pkId;
    }

    public void setPkId(String pkId) {
        this.pkId = pkId == null ? null : pkId.trim();
    }

    public String getEquipCode() {
        return equipCode;
    }

    public void setEquipCode(String equipCode) {
        this.equipCode = equipCode == null ? null : equipCode.trim();
    }

    public String getFactoryId() {
        return factoryId;
    }

    public void setFactoryId(String factoryId) {
        this.factoryId = factoryId == null ? null : factoryId.trim();
    }

    public String getLineId() {
        return lineId;
    }

    public void setLineId(String lineId) {
        this.lineId = lineId == null ? null : lineId.trim();
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId == null ? null : shopId.trim();
    }

    public String getLocationId() {
        return locationId;
    }

    public void setLocationId(String locationId) {
        this.locationId = locationId == null ? null : locationId.trim();
    }

    public String getEquipType() {
        return equipType;
    }

    public void setEquipType(String equipType) {
        this.equipType = equipType == null ? null : equipType.trim();
    }

    public BigDecimal getEffectiveWorkTime() {
        return effectiveWorkTime;
    }

    public void setEffectiveWorkTime(BigDecimal effectiveWorkTime) {
        this.effectiveWorkTime = effectiveWorkTime;
    }

    public String getInstallLocation() {
        return installLocation;
    }

    public void setInstallLocation(String installLocation) {
        this.installLocation = installLocation == null ? null : installLocation.trim();
    }

    public Date getManufactureDate() {
        return manufactureDate;
    }

    public void setManufactureDate(Date manufactureDate) {
        this.manufactureDate = manufactureDate;
    }
    
    

//    public Date getProductionDate() {
//        return productionDate;
//    }
//
//    public void setProductionDate(Date productionDate) {
//        this.productionDate = productionDate;	
//    }

    public Date getProductionDate() {
		return productionDate;
	}

	public void setProductionDate(Date productionDate) {
		this.productionDate = productionDate;
	}

	public String getDepreciationType() {
        return depreciationType;
    }

    public void setDepreciationType(String depreciationType) {
        this.depreciationType = depreciationType == null ? null : depreciationType.trim();
    }

    public BigDecimal getOriginalAssets() {
        return originalAssets;
    }

    public void setOriginalAssets(BigDecimal originalAssets) {
        this.originalAssets = originalAssets;
    }

    public BigDecimal getExpectedResidualRate() {
        return expectedResidualRate;
    }

    public void setExpectedResidualRate(BigDecimal expectedResidualRate) {
        this.expectedResidualRate = expectedResidualRate;
    }

    public BigDecimal getNetAssets() {
        return netAssets;
    }

    public void setNetAssets(BigDecimal netAssets) {
        this.netAssets = netAssets;
    }

    public Integer getExpectedYear() {
        return expectedYear;
    }

    public void setExpectedYear(Integer expectedYear) {
        this.expectedYear = expectedYear;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department == null ? null : department.trim();
    }

    public String getResponsiblePerson() {
        return responsiblePerson;
    }

    public void setResponsiblePerson(String responsiblePerson) {
        this.responsiblePerson = responsiblePerson == null ? null : responsiblePerson.trim();
    }

    public String getEquipStatus() {
        return equipStatus;
    }

    public void setEquipStatus(String equipStatus) {
        this.equipStatus = equipStatus == null ? null : equipStatus.trim();
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag == null ? null : delFlag.trim();
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser == null ? null : updateUser.trim();
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    @Override
    protected Serializable pkVal() {
        return this.pkId;
    }
}
